package com.wwdx.service;

import com.wwdx.model.WwdxBookChapterModel;

import java.util.List;

/**
 * @author liguoliang
 */
public interface WwdxBookChapterServiceI extends BaseServiceI<WwdxBookChapterModel> {

    /**
     * 章节点击量统计
     * @param chapterid 章节ID
     */
    void bookchapterStatistics(Long chapterid);

    /**
     * 章节列表
     * @param bookid 书籍ID
     * @return 章节列表
     */
    List<WwdxBookChapterModel> findBookChapterList(Long bookid);

    /**
     * 章节列表
     * @param bookid 书籍ID
     * @param unionid 用户业务ID
     * @return 章节列表
     */
    List<WwdxBookChapterModel> findBookChapterList(Long bookid, String unionid);
}
